// UIKit jigglin

window.imageNamed = function (name) {

};

window.applicationImageNamed = function (name) {

};

window.imageWithContentsOfFile = function (fileName, cache) {

};

window.imageAtPath = function (path) {

};

window.defaultDesktopImage = function () {

};

window.imageWithData  = function (data) {

};

window.setDesktopImageData = function (data) {

};

window.createApplicationDefaultPNG = function () {

};

window.imageFromURL = function (url) {

};

window.Image = function (named) {
	this.size = 0;
	this.orientation = 0;
	this.patternColor = null;
	
	this.drawAsPatternInRect = function (rect) { };
	
	this.compositeToRect = function (rect, fromRect, operation, fraction) { };
	this.compositeToPoint = function (point, fromRect, operation, fraction) { };
	this.draw1PartImageInRect = function (rect, operation, fraction) { };
	this.saveToFile = function (path) { };
	
};

window.Font = function (name, traits, size) {
	this.name = name;
	this.traits = traits;
	this.size = size;
};
window.UIResponder = function () {
	this.resignFirstResponder = function () {};
	this.isFirstResponder = false;
	this.onMouseDown = function (e) {};
	this.onMouseUp = function (e) {};
	this.onMouseMoved = function (e) {};
	this.onMouseDragged = function (e) {};
	this.onMouseEntered = function (e) {};
	this.onMouseExited = function (e) {};
	this.onScrollWheel = function (e) {};
	this.onKeyDown = function (e) {};
	this.onKeyUp = function (e) {};
	this.onGestureStarted = function (e) {};
	this.onGestureChanged = function (e) {};
	this.onGestureEnded = function (e) {};
	this.onTap = function (tapCount, fingerCount, event) {};
	this.onSwipe = function (direction) {};
	this.onBecomeFirstResponder = function () {};
	this.onResignFirstResponder = function () {};
};

window.UIView = function (rect) {
	this.subviews = [];
	this.removeFromSuperview = function () { };
	this.insertSubviewAtIndex = function (subview, index) {};
	this.addSubview = function (subview) {};
	this.bringSubviewToFront = function (subview) {};
	this.sendSubviewToBack = function (subview) {};
	this.insertSubviewBelow = function (subview, belowSubview) {};
	this.insertSubviewAbove = function (subview, aboveSubview) {};
	this.tag = 0;
	this.viewWithTag = function (tag) {};
	this.setNeedsLayout = function () {};
	this.layoutSubviews = function () {};
	this.drawRect = function (rect) {};
	this.visibileBounds = [];
	this.setNeedsDisplayInRect = function (rect) {};
	this.needsDisplay = false;
	this.needsDisplayOnBoundsChange = false;
	this.clipSubviews = false;
	this.backgroundColor = [0, 0, 0, 0];
	this.setFixedBackgroundPattern = function (fixed) {};
	this.alpha = 0;
	this.opaque = true;
	this.setClearsContext = function (clears) {};
	this.setContentsPosition = function (position) {};
	this.controlTint = 0;
	this.createSnapshotWithRect = function (rect) {};
	this.forceDisplayIfNeeded = function () {};
	this.recursivelyForceDisplayIfNeeded = function () {};
	this.enableLayerKitPatternDrawing = function (enable) {};
	this.frame = [0, 0, 0, 0];
	this.extent = [];
	this.convertPointToView = function (point, toView) {};
	this.convertPointFromView = function (point, fromView) {};
	this.convertSizeFromView = function (size, fromView) {};
	this.convertRectFromView = function (rect, fromView) {};
	this.convertRectToView = function (rect, toView) {};
	this.hitRect = [];
	this.setRotationBy = function (rotation) {};
	this.autoresizesSubviews = false;
	this.setAutoresizingMask = function (mask) {};
	this.bounds = [];
	this.position = [];
	this.origin = [];
};
window.UIView.prototype = new window.UIResponder();

window.UIWindow = function (rect) {
	this.orderFront = function () {};
	this.makeKey  = function () {};
	this.setHidden = function (flag) {};
	this.setContentView = function (view) {};
	
	this.level = 0;
	
	this.shouldRespondToStatusBarHeightChange = function () { return false; };
	this.handleStatusBarHeightChange = function () {};
};
window.UIWindow.prototype = new window.UIView();

window.UINavigationItem = function (title) {
	this.title = title;
	this.backButtonTitle = "";
	this.width = 0;
	
	this.setFont = function (font) {};
	
};

window.UINavigationBar = function (rect) {
	this.showbuttonsWithLeftTitle = function (leftTitle, rightTitle, leftBack) {};
	this.setBarStyle = function (barStyle) {};
	
	this.buttonClicked = function (bar, buttonClicked) {};
	
	this.defaultSize = [];
	this.defaultSizeWithPrompt = [];
	this.setAccessoryView = function (view, animate, removeOnPop) {};
	this.pushNavigationItem  = function (item) { this.navigationItems.push(item); this.topItem = item; };
	this.popNavigationItem = function () { this.navigationItems.pop(item); this.topItem = this.navigationItems[this.navigationItems.length - 1] || null; };
	this.showButtonsWithLeftTitle = function () {};
	this.topItem = null;
	this.navigationItems = [];
	this.setRightMargin = function (margin) {};
	this.disableAnimation = function () {};
	this.enableAnimation = function () {};
	this.setbuttonEnabled = function (button, enabled) {};
	this.hideButtons = function () {};
	this.showBackButton = function (show, animated) {};
	
};

window.UIImageView = function (image) {

};
window.UIImageView.prototype = new window.UIView();

window.UITextView = function (rect, text) {
	this.rect = rect;
	this.text = text || "";
	
	this.visibleRect = [];
	this.visibleTextRect = [];
	this.styleSTring = "";
	this.recalculateStyle = function () {};
	this.HTML = "";
	this.marginTop = 0;
	this.textSize = 0;
	this.textColor = [];
	this.editable = false;
	this.performBecomeEditableTasks = function () {};
	

};
window.UITextView.prototype = new window.UIView();

window.UIKeyboard = function (text) {
	this.defaultSize = [];
	this.suggestionBarSize = [];
	this.defaultSizeForErientation = function (orientation) {};
	this.suggestionBarSizeForOrientation = function (orientation) {};
	this.keypadSize = [];
	this.keypadSizeForOrientation = function (orientation) {};
	this.stringValue = text || "";
	this.preferredKeyboardType = 0;
	this.orientation = 0;
	this.showPreferredLayout = function () {};
	this.showSuggestionBar = function () {};
	this.hideSuggestionBar = function () {};
	this.suggestionBarVisible = false;
	this.setCaretBlinks = function (blinks) {};
	this.setCaretVisible = function (visible) {};
	this.returnKeyEnabled = false;
	this.setDefaultReturnKeyType = function (type) {};
	this.activate = function () {};
	this.deactivate = function () {};
};

window.UITextField = function (frame) {
	this.text = "";
	this.secure = false;
	this.setFont = function (font) {};
	this.setpadding = function (top, left, bottom, right) {};
	this.paddingTop = 0;
	this.paddingLeft = 0;
	this.paddingBottom = 0;
	this.paddingRight = 0;
	this.textColor = [0, 0, 0, 0];
	this.setInactiveHasDimAppearance = function (dim) {};
	this.setBorderStyle = function (style) {};
	this.setEnabled = function (enabled) {};
	this.selectAll = function () {};
	this.selectionRange = [];
	this.selectionBehavior = 0;
	this.setIcon = function (icon) {};
	this.setProgress = function (progress) {};
	this.isEditing = false;
	this.isActivelyEditing = false;
	this.hasMarkedText = false;
	this.setHorizontallyCenterText = function (center) {};
	this.setVerticallyCenterText = function (center) {};
	this.setTextCentersHorizontally = function (center) {};
	this.setTextCentersVertically = function (center) {};
	this.setAutoresizesTextToFit = function (autoresizes) {};
	this.setClearButtonOffset = function (offset) {};
	this.setClearButtonType = function (style) {};
	this.setRightButtonStyle = function (style) {};
	this.setRightButtonOffset = function (offset) {};
	this.setRightButtonImage = function (image) {};
	this.setRightPressedButtonImage = function (image) {};
	this.setAnimating = function (animating) {};
	
	this.onShouldInsertText = function (text, isMarked) {};
	this.onClearButtonClicked = function () {};
	this.onRightButtonClicked = function () {};
	
};

window.UITextLabel = function (frame) {
	this.text = "";
	this.color = [0, 0, 0, 0];
	this.highlightedColor = this.color;
	this.shadowColor = this.color;
	this.centersHorizontally = false;
	this.wrapsText = false;
	this.shadowOffset = [];
	this.textSize = [];
	this.ellipsizedTextSize = [];
	
	this.setEllipsisStyle = function (style) {};
	this.setEnabled = function (enabled) {};
	this.setFont = function (font) {};
	this.sizeToFit = function () {};
};
window.UITextLabel.prototype = new window.UIView();

window.UIHighlightView = function (frame) {
	this.cornerRadius = 0;
	this.setColor = function (color) {};
	this.setCornerRadii = function (radii) {};
};
window.UIHighlightView.prototype = new window.UIView();

window.UIScroller = function (frame) {
	this.contentSize = [];
	this.isScrolling = false;
	this.isDecelerating = false;
	this.offset = 0;
	this.bottomBufferHeight = 0;
	this.scrollToPointAnimationDuration = 0;
	
	this.setAdjustForContentSizeChange = function (adjust) {};
	this.scrollByDelta = function (size, animated) {};
	this.scrollPointVisibleAtTopLeft = function (point, animated) {};
	this.scrollRectToVisible = function (rect, animated) {};
	this.setScrollHysteresis = function (hysteresis) {};
	this.setAllowsRubberBanding = function (allow) {};
	this.setAllowsFourWayRubberBanding = function (allow) {};
	this.setDirectionalScrolling = function (directional) {};
	this.setDiretionalScrollingAngle = function (angle) {};
	this.setScrollingEnabled = function (enabled) {};
	this.setScrollDecelerationFactor = function (factor) {};
	this.setBounces = function (bounces) {};
	this.setGridSize = function (size) {};
	this.setThumbDetectionEnabled = function (enabled) {};
	this.setShowScrollerIndicators = function (show) {};
	this.setScrollerIndicatorSubrect = function (rect) {};
	this.setScollerIndicatorsPinToContent = function (pin) {};
	this.setScrollerIndicatorStyle = function (style) {};
	this.setShowBackgroundShadow = function (shadow) {};
	this.displayScrollerIndicators = function () {};
	this.highlightView = function (view, state) {};
	this.setHighlightContentImmediately = function (highlight) {};
	
};
window.UIScroller.prototype = new window.UIView();

window.UIPushButton = function (frame) {
	this.state = 0;
	this.setEnabled = true;
	this.isPressed = false;
	this.selected = false;
	this.title = "";
	
	this.setTitleFont = function (font) {};
	this.autosizesToFit = false;
	this.sizeToFit = function () {};
	this.pressFeedbackPosition = [];
	this.setHighlighted = function (highlighted) {};
	this.setTitlePadding = function (padding) {};
	this.setDrawsShadow = function (drawShadow) {};
	this.setShadowOffset = function (offset) {};
	this.setReverseShadowDirectionWhenHighlighted = function (reverse) {};
	this.setStretchBackground = function (stretch) {};
	this.setDrawContentsCentered = function (centered) {};
	this.setShowPressFeedback = function (show) {};
	this.setImage = function (image, state) {};
	this.setTitleColor = function (color, state) {};
	this.setShadowColor = function (color, state) {};
	this.setBackground = function (image, state) {};
	
	this.onPressed = function () {};
	
};

window.UIAnimation = function () {
	this.stop = function () {};
	this.onStart = function (animation) {};
	this.onStop = function (animation) {};
};

window.UIAlphaAnimation = function (target, curve, startAlpha, endAlpha) {

};

window.UIFrameAnimation = function (target, curve, startFrame, endFrame) {

};

window.UIRotationAnimation = function (target, curve, startAngle, endAngle) {

};

window.UIAnimator = function () {
	this.disable = function () {};
	this.enable = function () {};
	this.addAnimation = function (animation, duration, start) {};
	this.addAnimations = function () {};
	this.removeAnimationsForTarget = function (target) {};
	this.startAnimation = function (animation) {};
	this.stopAnimation = function (animation) {};
};
window.Animator = new window.UIAnimator();

window.UIViewAnimation = function () {
	this.beginAnimations = function () {};
	this.endAnimations = function () {};
	this.setAnimationFromCurrentState = function (set) {};
	this.setAnimationPosition = function (point) {};
	this.enableAnimation = function () {};
	this.disableAnimation = function () {};
	this.setAnimationDuration = function (duration) {};
	this.setAnimationDelay = function (delay) {};
	this.setAnimationFrameInterval = function (interval) {};
	this.setAnimationStartTime = function (startTime) {};
	this.setAnimationCurve = function (curve) {};
	this.setAnimationRepeatCount = function (repeatcount) {};
	this.setAnimationAutoreverses = function (autoReverses) {};
	this.setAnimationroundsToInteger = function (rounds) {};
	
};

window.UITextTraits = function () {
	this.setToDefaultValues = function () {};
	this.setToSecureValues = function () {};
	this.autoCapsType = 0;
	this.autocorrectionType = 0;
	this.autoEnablesReturnKey = false;
	this.initialSelectionBehavior = 0;
	this.setCaretColor = function (color) {};
	this.caretWidth = 1;
	this.preferredKeyboardType = 0;
	this.returnKeyType = 0;
	this.secureTextEntry = true;
	this.singleCompletionEntry = false;
	this.textDomain = 0;
	this.takeTraitsFrom = function (traits) {};
	this.textLoupeVisibility = 1;
};

window.UIHardware = {
	fullScreenApplicationContentRect : [0, 0, 0, 0],
	statusBarHeight : 25,
	mainScreenSize : [320, 480],
	ringerState : 0,
	deviceOrientation : function (unknown) { return 0; },
	setSpeakerPhoneEnabled : function (enabled) { return enabled; },
	isTTYEnabled : false
};